PROJECT(XPMDOC-Model)

#add the files to our groups and core
SOURCE_GROUP("model" ./model/*)
SOURCE_GROUP("model_ruleml" ./model/ruleml/*)
SOURCE_GROUP("model_rdf" ./model/rdf/*)
SOURCE_GROUP("model_sdf" ./model/sdf/*)
#seems to be a bug in cmake, can't put these in analysis\\standard folder :(
#model detail

SET(XPMDOC-Model_Files
	#for example 
	#./control/ControlSynset.cpp	
	./model/XpmTermBlock.cc	
    ./model/XpmTermDoc.cc	
	./model/XpmClipboard.cc
	./model/ruleml/Ruleml.cc
	./model/ruleml/RulemlAtom.cc
	./model/ruleml/RulemlAssert.cc
	./model/ruleml/RulemlImplies.cc
	./model/ruleml/RulemlCompetitor.cc
	./model/rdf/Factory.cc
	./model/rdf/Cls.cc
	./model/rdf/Instance.cc
	./model/rdf/Project.cc
	./model/rdf/KnowledgeBase.cc
	./model/rdf/Query.cc
	./model/rdf/Slot.cc
	./model/sdf/SDFConnotation.cc
	./model/sdf/SDFDenotation.cc
	./model/sdf/SDFIdentifier.cc
	./model/sdf/SDFReification.cc
	./model/sdf/SDFSign.cc
	./model/sdf/SDFSignFormat.cc
)

#find our headers
file(GLOB_RECURSE HEADERS ${XPMDOC-Model_SOURCE_DIR}/*.h)


#create the libraries
INCLUDE_DIRECTORIES( ${XPMDOC_SOURCE_DIR}/src/model 
                     )

#add_executable(CONEX-Model
#	${CONEX-Model_Files} ${HEADERS}
#)

add_library(XPMDOC-Model
    STATIC
	${XPMDOC-Model_Files} ${HEADERS}
	)

#set properties on the libraries
SET_TARGET_PROPERTIES(XPMDOC-Model PROPERTIES
    VERSION ${CONEX_VERSION}
    SOVERSION ${CONEX_SOVERSION}
    COMPILE_DEFINITIONS_DEBUG _DEBUG
)

#SET_TARGET_PROPERTIES( CONEX-Model PROPERTIES COMPILE_FLAGS "${CONEX-Model_SOURCE_DIR}/dal/otlv4.h" )
#SET_TARGET_PROPERTIES( CONEX-Model PROPERTIES LINK_FLAGS "odbc32.lib" )



